<?php
class Site extends Controller {

    /*public function __construct() {
        $this->load->helper('html');
    }*/
    
    public function index()
	{            
//
//           
//            $id=$this->uri->segment(3);
//            $this->load->model('commonmodel');
//            $data['events']=$this->commonmodel->get_event($id);
//            //print_r($data['events']);exit;
//            $this->load->library('breadcrumb');
//            $this->breadcrumb->Breadcrumb();
//            $this->breadcrumb->addCrumb("Events");
//            $data['breadcrumb'] = $this->breadcrumb->makeBread();
//
//            $this->template->load('template', 'eventdetail', $data);
//            //$this->load->view('home');
        }
        
       public function links()
	{            

           
            $customlinks_page_id=$this->uri->segment(3);
            $this->load->model('commonmodel');
            $data['customlinks']=$this->commonmodel->get_customlinks($customlinks_page_id);
            //print_r($data['events']);exit;
            $this->load->library('breadcrumb');
            $this->breadcrumb->Breadcrumb();
            $this->breadcrumb->addCrumb($data['customlinks']['title']);
            $data['breadcrumb'] = $this->breadcrumb->makeBread();

            $this->template->load('template', 'customlinks', $data);
            //$this->load->view('home');
        }
        
    
    

    
    

}
?>
